Increasing performance by optimizing db calls & refactoring logic for misc models