Fixed malformed db files