Refactored DatabaseI into DatabaseInterface.