updated with postgressql gem