added mysql logging