small changes in db classes