Adjusting grid based on log transform of counts; DB connection is now shared