Change db from mysql to postgresql