implemented load/save local database
fix custom serial input
implemented auto-assignment of unit number