changed database from sqlite to postgresql