Fix server destroy promise.

Added server functions:
command
insert
update
remove