using mysql for log