Connection to MySQL db

+ function for connection to MySQL