Add sqlhistory filter