Common GetStoredCdrs for MySQL and Postgres, partially using Gorm