add support for Database.invoke (fixes #121)

add invoke method with two overloads, one for an entity ident and one for an entity id
Merge pull request #126 from dwhjames/topic/db-invoke

add support for Database.invoke (fixes #121)