Link mime/type functions in DB