add splicing for large db calls