Moved category to date ranges table/forms; included categories in SQL

These changes corrected some errors in the add and edit hours forms
related to switching categories and date ranges.
minor changes related to hours categories and to print hours