db: find_jobs works with both mysql & sqlite