add support for Database.invoke (fixes #121)

add invoke method with two overloads, one for an entity ident and one for an entity id