Class Db updated to implement mysqli extension. Other php classes updated