Finally found a semaphore for the databases