Added database and methods for database access.