mysql configuration; fix database model