nixos/couchdb: fix stopping of service, by making it non-forking, a few other improvments