Make mysql connection lazy