Fix possible MySQL connection timeout
Attempt to fix inserting UTF-8 strings into the database