Moved controllers to namespace
Added database support