Refactored db schema; added table to html page