# declare a db handle # get a lock on the table # call a subroutine from the module that does something to the db # unlock the table