'Save media on first load' - change to SqlHelper.ExecuteScalar to PetaPOCO DAL