sqlite stuff and config