Refactored db/fl code

DBManager and FileManager inherit from DataManager, each tool will have
a DataManager, doesn't have to keep track of online/offline mode