Add QueryErrorException to Database component