moved db functions to another module
rudimentary template filling
updated .gitignore