factored out sql settings to conf