Added functions to make database API consistent with other databases; added tests for the new functions.