Move major database interaction into DataManager