Save availability to db.