exluded nones

This PR fixes the entries in the db have `None` for the `median` field. We might need to clear the db. 
What's the default value for 'median' in the database?