implement class MySQL (2/2)
remove deprecated $db