Tests on mysql database