Remove the lock in the database queue