Added app instance to base controller
Code comments, dbdriver and tweaks
Added dbtype to the config file
Started on the date helper
Tweaks