Completed index for public site.
Added sql for required database table to enable this module to work.