grooks commands in the database