Set mysqli to reconnect when connection is timed out to prevent database access errors