Template and MySQL Functions

Added Mysql Functions and a Template System