Add prm.getValue()

Fix prm->bufferObject_ not being set for bound output parameters
Fix warning casting double to long
Add dataAvailable parameter to callback of stmt.execute() and
stmt.execDirect()