Minor changes to DB API