added database load autoload.php
and template controller.php edit function ok