Added Layouts and DB conection
Refactored html wiews