more sqlite shenanigans