database settings optimizations