-fixed submitting date range
-fixed bug on sql for status