Config DB connection
Corrected main, added views
Completed views, updated main