Updated the sql for importing to the database.