Rewritten database functions from the ground up. Enhanced the 'core' class. Placeholder 'mail' class. Removed tpl class due to twig switch. Updated init accordingly.