Adding some database interface methods.