Alias QueryFactory::prepare_input to prepareInput

It used to be the opposite.
refactor QueryFactory::getBindVarValue

getBindVarValue now removes all the unused code for extra
type options (like the regex pattern for regexp type).

It never actually worked before.

I have also synced the phpdoc with the actual reality.
clean up QueryFactory connect/close docs
refactor QueryFactory::metaColumns