Fixed util functions for mongo; added model copy