WIP records: REST API addition

I think this could be solved by `mime_type = db.Column(db.String, nullable=True, unique=True)`