Added utility functions to read resources/-files to the database models.