nests commands in the database