kms commands in the database