changed mysql connection to speed up with local server configuration