added database calls and allows users to click on table header to order the results.  also have basic metadata reading working.