Added padding on mobile template
Refactored db output to objects and cleaned up helper functions