remove all is_inactive related code

• for documents, document_categories and links
• remove related code
• add migration file to migrate db