trying to switch database from mysql to postgresql