Reworked controllers
Error pages
Extracted DB conn mgmt