working ajax that sets id and stores in database when dropped