Added database and flask app