Added some more exmaple code to database conenction and mainController