public static function get_records_for_template($templateid, $status = 0, $skip = 0, $limit = 100) {
        $filters = array('templateid' => $templateid);
        if ($status > 0) {
            $filters['status'] = $status;
        }
        return self::get_records($filters, $skip, $limit);
    }