Preference SQL Framework