Added locking for user updates and searches
updated build file
wrapped the add user loop in a for {} loop with a 1s sleep