fixed mysql bugs, added display of table