Fixed some issues in mysql import