Added error message if can't connect to mysql