Added a handler to create the Properties for a given custom SQL, based on the actual ResultSet returned by the DB. refs #454