Changed style filters to be SQL