mysqli extended with a few useful methods.