Restructed the app

Restructured the code, switched to the blade template engine and
modified the database