Local settings fix for sqlite