Added database filtering to the scripter.