more changes to db api