modularized using Blueprint. now database is using SQLAlchemy.