fixing sql settings