Remove unused methods of Database<>.

Also make two internal methods protected.

See also: https://codereview.appspot.com/153420043/