complete chapter 5

- add sqlalchemy support
- add migration support