mates commands in the database