Added in calls to database methods for flaskServer ECA