handling mysql connection errors
http basic authentication added