Remove unused methods of Database<>.

Also make two internal methods protected.