FLOE-206: Added a createView method.

A user can now add views for querying the database against. Additionally the get method was refactored to be able to make queries to the database and the set method was refactored to move shared parts into an impl function. Tests updated and added.