Changes sqlite to postgresql