[api] Ensure that updateOrCreate returns updated object instead of success boolean. Allow database name be configurable. Replaced JugglingDB updateOrCreate method with get / create / save.