Runs are non-blocking, also refactored database, added locking to models.