Integrated database with Flask server