add some performance tuning to db