this build saves to mysql via php api. if the api is unreachable, it temporarily falls back to local storage.