add sqlalchmey models and working code