changing gem and database file to use postgres