added postgresql gem and changed database.yml