import.php: Wrapped the INSERTs into a transaction and moved the mysql parameters to a seperate section.