change database to postgres + add pg gem
fix errors in db setup