Added Database class for database functionality.