Updated templates

- Finished extension.py
- WIP db.py