renamed UA to UserAgent, privatized .database, moved all class methods to bottom