Generate 1.7 bytecode
Refactord DB Session management.
First attempt with API/json.