renamed database_wide_lock to lock_by_key