Named ugly query and put it in the model, also support for free_beds + search terms