Sets the value of is_available going to the database to either 0 or 1.