db handler small fix