Fix useSp for db