changed to use new db bindings