fixed bug in datamanager, device name cant be seperated by space, added fix that replaces spaces with underscores before passing to dao