Added classes for postgres todo: finish ORM integration and fix fetching methods