Even more databases/filters, more reliable script in ruby