Multi threaded server with client which handles device database