Basic template editor with database