app.py and other features added to losodb.py