change to db gem