updates to correct errors for migration from mysql to postgres
updates to correct errors for migration from mysql to postgres

AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us