Repaired the connection to mysql