[server][DBClientAction] Implemnt privilege check in the delete operation.

NOTE: Unit tests are not implemented yet. I'll do it soon.