Added new databaseController

Added the new database controller written by Danny