fix sqlite database