updated ORM handler to handle study location