GORM provides method
DB which returns generic database interface *sql.DB from current
// Get generic database object sql.DB to use its functions
NOTE If the underlying database connection is not a
*sql.DB, like in a transaction, it will returns nil
// SetMaxIdleConns sets the maximum number of connections in the idle connection pool.