Add functions for ORM-creation