add mac in database