need to make changes to db error codes, added simple app.py