Logs ERROR and WARN added + bug fixing MySQL.js