Add Locks to all db calls