Rename two python db functions to match C and Python APIs.