Connected to MySQL database ( messages ).