changed sqlite impl