Fixed db insert statements and updated mysql import scripts