bases commands in the database