Documentation of DatabaseManager and cleaning of the to big methods