changes to db api