Remove unused methods of Database<>.

Also make two internal methods protected.
Active development, DO NOT PUSH.