Preparing the MySql tables