Restructuring of DBManager and AccountManager. Organized and Fully
Commented.