Tiny bugfixes.

- Database: now throws an exception if it cannot connect.
- Template: quotes manual set open & close markers.
- Template: it's a PHP compiled template, do not allow manual PHP.