I'm not sure what exactly you're trying to do. You wrote that you want to filter by certain event IDs and then send them to a separate db-row. Did you mean a separate table? Each syslog received will be written to an individual row.
To write specific events to another location(DB, file, etc) create a filter using the message text. Add the event IDs that you want to match. Create an action that writes to the location you want. Then add a "stop processing" action. Make sure this is before the more general rule so the events that don't match pass through and get written to the original DB.