legrids commands in the database