populate.py now checks is app.db exists