minor fixes to nas hostname is now saved into database