Fixes 3.1 deprecation warnings on static properties

This the standard change from 

      public static $db = array();

to
     private static $db = array();