update gitignore
add db-update in template
re-add preregister implementation (template)