Replace some deprecated or removed methods of JDatabase