Here is one example of a similar app using the Cloud database.
OTHER ways to do it using other techniques and extensions.