add try exception to mysqldb import