Availabilities crud

Please refactor.