finished project implementation in app.py - added ajax urls for db