platform saving to db