changed db from sqlite to postgres