Get errorcode and readable error in preparequery

No need to stop getting the errorCode, if the error string should be
retrieved. Just return both!
Fix indentation in AMBuilderPGSQL
Try to patch and configure postgres through ambuild