Fixed --event flag for mysql database