Changed to use MySQL database