Removed database locking