A proof of concept to use a row in a database as a semaphore for locking resources.