fix for reent sqlite change