close mysql connection after each request