Change sqlite to postgresql