Removed superfluous db opens in dbHandler