Hidden connection and implemented prepare
MSSQL query customiser now generic function for use by query and prepare methods.

Signed-off-by: Tom Castleman <tom.castleman@b3-it.com>