get mysql reporting to work