Changed DatabaseManager to an object and added database functions to ClockworkPlayer