removed the main functions from the dbmanager