postgresql connection string can now handle single quotes in the password

stringByReplacingPercentEscapesUsingEncoding handles spaces and other special characters; stringByReplacingOccurrencesOfString escapes single quotes.