fixed generator for custom SQLs to map informations