N.B. untested code
something like:
in MyModel:
def self.find_by_emp_id(id)
conn.query("select * from employees where emp_id = #{id}")[0]
end
Since the gem is not ActiveRecord you'll have to write your own accessors, you cannot rely on the automagically created ActiveRecord find_by_ methods. I think you can hack that gem into ActiveRecord and have all of ActiveRecord's goodness but that's probably more than you'd want to take on as a Ruby beginner.
Be careful to sanitize any user input ...