add commands to database