Added missing db functions to python bindings.