Avoid an sqlite segfault