Fix DB spec preparer