Method for connecting to MySQL database

Just calls the normal DB function - but pieces together the string for
the user
Checks if Cloudflare is sending the clients IP
Fixed the Cloudflare check