added Database interactions

home page content is now dynamic