Changed sqlite to postgres DB