Changed db for carrierwave int