basic ORM using ruby and sql