moving stuff over into DBManager