Corrected spelling.
Added a config file for db credentials.
Constants should be uppercase.
Added a view template and the path to it.