attempt 2 at sqlite fix