added databases and templating