Changed ids to integers in db