switched from mysql to postgres