Initial code borrowed from: The code for Part Two of my three-part tutorial, Build a CRUD Web App With Python and Flask. Extended to provide the rest of the web site and RESTful interface to the proptrunk data.