Retemplating from Database

Closes #11