sqlite workaround