fix type default, add rate menu and store reports in database