added mysql and files logging