fix sqlite init code