Install pg for development

Changed the development and test databases from Sqlite to Postgres.