check for mysql database and tables cause there where errors if not