modify

- DBInterface added writeDevice ability
- Device fixed bug
-doAdd added device db insertion
- page changed the user options for future addition of adding devices