avoiding race conditions when sharing database between processes or threads
this ticket is intended to clarify the design needed to make 2 servers using the same database function properly. the main problem is that, by having 2 separate servers or threads, one could insert/delete/update one lease at the same time the other does some similar action.
this ticket is no related to multi-threading but the MT design relies on the fact that the functionality of 2 servers sharing the database is handled properly