first steps towards mysql logging