Changed from mongoid to postgress