add plaintext to templates
add template post method
fix db bug
fixing the template post method