When no SQL query is present, create a simple one to ensure that the table name is escaped properly ; otherwise mapnik tries to create a query with the un-escaped table name ; if no style is provided, ensure that the default style created applies to the current dataset.