update views.py for opensense and funf connectors to insert data properl...

...y
Also, just a naming thing - the variable name 'database' isn't quite accurate; in Mongo, it's the collection, and in relational backends, there is no concept of a collection. A better name might be collectionName (to remove confusion about passing in a string vs a collection object). That being said, I'm not completely convinced this is the right way to do it.