adding date information to mongo schema and API response