Usually, if a database is malformed, logs should tell you that.
Here are some info on how to fix malformed databases: