Fix a bug causing import_sql_file to prepare a statement twice