design changes and bug fixes

-re-create sql, proper indexes
-optimize menu updating
-implement start and end dates