* switch to sqlite
* initial loading and template handling
* restructuring