Uses connect_cached to cache the mysql connection