Don't keep the query handle open. Always make sure the db connection is
still alive.